﻿using System;
using System.Configuration;

namespace Ue.Core.Configuration
{
    public class NameTypeConfigurationCollection : ConfigurationElementCollection<NameTypeConfigurationElement>
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new NameTypeConfigurationElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return (element as NameTypeConfigurationElement).Name;
        }
    }
}
